package com.dk.ssm.service.impl;

import com.dk.ssm.dao.DeptDao;
import com.dk.ssm.entity.Dept;
import com.dk.ssm.service.DeptService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DeptServiceImpl implements DeptService {

    private final DeptDao deptDao;

    public DeptServiceImpl(DeptDao deptDao) {
        this.deptDao = deptDao;
    }

    @Override
    public List<Dept> getAllDept() {
        return deptDao.queryAllDept();
    }
}
